package com.tc.vms.config;

/**
 * Created by yonghua.zhang on 2015/12/10.
 */
public enum BrokerType {
    KAFKA("kafka"),
    RABBITMQ("rabbitmq");

    private final String name;

    BrokerType(String name) {
        this.name = name;
    }

    public static BrokerType getBrokerTypeByName(String name) {
        return BrokerType.valueOf(name.toUpperCase());
    }

    public String getName() {
        return name;
    }
}
